package l2

import (
	"reflect"

	"zstackgo/spring"
)

func init() {
	spring.RegisterInterface("header.network.l2.L2NetworkGetVniExtensionPoint", reflect.TypeOf((*L2NetworkGetVniExtensionPoint)(nil)).Elem())
}

type L2NetworkGetVniExtensionPoint interface {
	// Note(WeiW): Get identifier of l2 network, vlan id for vlan network, vsid for nvgre, context id for stt,
	// vni for vxlan and geneve, use vni(Virtual Network Identifier) here for a general name
	GetL2NetworkVni(l2NetworkUuid string, hostUuid string) int
	GetL2NetworkVniType() string
}
